package io.xxx.mario.task;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.xxx.mario.common.DateFormats;
import io.xxx.mario.message.MessageType;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Map;

@Data
public class TaskMessage {

    @TableId
    private Long id;

    private int serialNo;

    private Long taskId;

    private Long messageId;

    private MessageType messageType;

    private MiniProgramType miniProgramType;

    private Map<String, Object> payload;

    @JsonFormat(pattern = DateFormats.DEFAULT)
    private LocalDateTime createdTime;
}
